import request from '@/utils/request'

// 查询兼职报名列表
export function listSideWorkEnroll(query) {
  return request({
    url: '/works/sideWorkEnroll/list',
    method: 'get',
    params: query
  })
}

// 查询兼职报名详细
export function getSideWorkEnroll(id) {
  return request({
    url: '/works/sideWorkEnroll/' + id,
    method: 'get'
  })
}

// 新增兼职报名
export function addSideWorkEnroll(data) {
  return request({
    url: '/works/sideWorkEnroll',
    method: 'post',
    data: data
  })
}

// 修改兼职报名
export function updateSideWorkEnroll(data) {
  return request({
    url: '/works/sideWorkEnroll',
    method: 'put',
    data: data
  })
}

// 删除兼职报名
export function delSideWorkEnroll(id) {
  return request({
    url: '/works/sideWorkEnroll/' + id,
    method: 'delete'
  })
}
